package service

import dao.FusionSymbolsDao
import javax.inject.Inject
import play.api.libs.json.Json
import scala.concurrent.ExecutionContext.Implicits.global


/**
 * Created by yz on 4/6/2020
 */
class FusionSymbolsService @Inject()(fusionSymbolsDao: FusionSymbolsDao) {

  def getAllSymbols = {
    fusionSymbolsDao.select.map { x =>
      Json.parse(x.geneSymbols).as[List[String]]
    }

  }

}
